<?php

namespace app\admin\controller;

use app\common\Helpers\Result;
use think\Request;

// 人员管理
class RoleController
{
    public function index(Request $request)
    {
        if($request->isPost()){
            $params = $request->post();
            $data = [
                [
                    'id' => 1,
                    'username' => 'admin',
                    'realname' => '管理员',
                    'email' => '',
                    'mobile' => '',
                    'status' => 1,
                    'create_time' => '2021-03-09 09:46:46',
                    'update_time' => '2021-03-09 09:46:46',
                    'last_time' => null,
                    'last_ip' => null,
                ]
            ];
            return Result::success('', $data, ['total' => 2]);
        }else{
            return view();
        }

    }

    public function remove()
    {

    }
}